# -*- coding: utf-8 -*-
"""
Created on Tue Nov  3 14:57:58 2020

@author: Administrator
"""
from  pythonsbasic import Queue

q=Queue(["jack","tom","luce","joho"]) 
num=7  
while q.size()>1:
    
    for i in range(1,num):
        q.enqueue(q.dequeue())
        
    print(q.dequeue())
    
    
print(q)
    
    
